<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

/**
 *  常见问题
 */
class Qa extends Model
{
    protected $table = 'question_list';

    static function getList($gender = -1)
    {
        $where = [
            'flag' => 1,
        ];
        return self::where($where)->whereIn('gender', [-1, $gender])->select(['question', 'answer'])->get()->toArray();
    }
}
